package com.maes.hughes.example.zk.zkclient;

import org.I0Itec.zkclient.ZkClient;
import org.I0Itec.zkclient.serialize.SerializableSerializer;

public class WriteData {

	public static void main(String[] args) {
		ZkClient zc = new ZkClient("192.168.31.246:2181",10000,10000,new SerializableSerializer());
		System.out.println("conneted ok!");
		

//		String a = "666";
//		zc.writeData("/jike5",a);

		User u = new User();
		u.setId(5);
		u.setName("test6");
		zc.writeData("/jike5", u);
		
	}
	
}
